$OpenBSD: patch-third_party_pdfium_fpdfsdk_src_jsapi_fxjs_v8_cpp,v 1.2 2015/07/23 13:44:04 robert Exp $
--- third_party/pdfium/fpdfsdk/src/jsapi/fxjs_v8.cpp.orig.port	Wed Jul 22 08:51:58 2015
+++ third_party/pdfium/fpdfsdk/src/jsapi/fxjs_v8.cpp	Wed Jul 22 08:52:59 2015
@@ -747,6 +747,7 @@ void JS_ValueCopy(v8::Handle<v8::Value>& pTo, v8::Hand
 
 double _getLocalTZA()
 {
+	struct tm *lt;
 	if(!FSDK_IsSandBoxPolicyEnabled(FPDF_POLICY_MACHINETIME_ACCESS))
 		return 0;
 	time_t t = 0;
@@ -759,7 +760,11 @@ double _getLocalTZA()
   long timezone = 0;
   _get_timezone(&timezone);
 #endif
+#ifdef __OpenBSD__
+        return (double)(-(lt->tm_gmtoff * 1000));
+#else
 	return (double)(-(timezone * 1000));
+#endif
 }
 
 int _getDaylightSavingTA(double d)
